/**
 * 业务异常类
 * @param message 异常信息
 * @param code 异常码
 */
export class Exception extends Error {
  constructor(message: string, code?: number) {
    super(message);
    this.cause = code;
  }
}
